package com.lanxiaoye.shoppingSystem.service;

import com.lanxiaoye.shoppingSystem.entity.*;

import java.util.List;

/**
 * Created by Administrator on 2017/3/22.
 */
public interface ModuleService {

    int addSuggestion(Suggestion suggestion);

    List<ReceiptInfo> getReceiptInfo(int user_id);

    int deleteReceiptInfo(int id);

    int addReceiptInfo(ReceiptInfo receiptInfo);

    List<Category> getAllCategory();

    List<ScanRecord> getRecentScan(int userId);

    List<Comment> getGoodsComment(int goodsId);

    int addScanRecord(ScanRecord scanRecord);

    int updateScanRecord(ScanRecord scanRecord);

    ScanRecord getRecordByUserAndGoods(int userId,int goodsId);

    ShoppingCar getCartByUserAndGoods(int userId,int goodsId);

    int updateShoppingCart(ShoppingCar shoppingCar);

    int addShoppingCart(ShoppingCar shoppingCar);

    List<ShoppingCar> getCartsByUserId(int userId);

    int deleteShoppingCart(int id);

    int addOrder(UserOrder userOrder);

    int deleteCartByUserId(int userId);

    int cancelOrder(int userId);

    int payOrder(int userId);

    List<UserOrder> getOrderByUserId(int userId);

    UserOrder getOrderByOrderId(int orderId);

    int addComment(Comment comment);

    Comment getCommentByOrderId(int orderId);
}
